# -*- coding =utf-8 -*-
# @Time : 2022/9/12 18:02
# @Author :1814-09胡海燕
# @File : 2-2.py
# @Software : PyCharm
s = 0
for i in range(1, 101):
    s += i
    print(s)

s = 0
i = 1
while i < 101:
    s += i
    i += 1
    print(s)
